import React from "react";
import './home.scss'
import MyMenu from "../../components/menu/Menu";
import MyBreadcrumb from "../../components/bread_crumb/MyBreadcrumb";
import {BrowserRouter, Switch} from "react-router-dom";
import { renderRoutes } from 'react-router-config';
import routes from "../../route/route";


function Home(props){
    return(
        <div className={'home-container'}>
            <MyMenu/>

            <div className={'home-main'}>
                <MyBreadcrumb/>

                <BrowserRouter>
                    <Switch>
                        {renderRoutes(routes)}
                    </Switch>
                </BrowserRouter>

            </div>
        </div>
    )
}

export default Home